<template>
    <div>
        <van-search v-model="value" placeholder="请输入搜索关键词"  @click="search"/>

    </div>
</template>

<script setup>
    import { ref } from 'vue'
    import {useRouter} from 'vue-router'
    const router=new useRouter()
    const search=()=>{
        console.log('搜索')
        router.push('/search')

    }

</script>

<style lang="scss" scoped>

</style>